﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Things.Common;

namespace Things.ThingsWeb
{
    public partial class Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                BindData();
            }
        }

        protected void BindData()
        {
            Things.BLL.Goods bll = new BLL.Goods();
            DataSet ds = bll.GetList(ConstantString.GoodsCategoryName.大米.ToString(), ConstantString.GoodsPriceType.零售.ToString(), "");
            this.GoodsList1.DataSource = ds;

            DataSet ds1 = bll.GetList(ConstantString.GoodsCategoryName.杂粮.ToString(), ConstantString.GoodsPriceType.零售.ToString(), "");
            this.GoodsList2.DataSource = ds1;
        }
    }
}
